package cn.hnu.jpa.jpaExample.OneToMany.SingleWay;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class ModelAddr implements Serializable {

	/**
	 * 一对多典型模式 单向关联  在address 表中多了一列 costumer_id
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	
	private String addr;

	@Id @GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}
	
	
}
